package com.poker.controller;


import com.alibaba.druid.util.JdbcUtils;
import com.mysql.jdbc.ConnectionImpl;
import com.poker.base.Result;
import com.poker.entity.Card;
import com.poker.entity.User;
import com.poker.service.CardService;
import com.poker.service.PlayService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api(value = "扑克管理",tags = "扑克管理")
@RestController
@CrossOrigin
@RequestMapping("/card")
public class CardController {


    @Autowired
    private CardService cardService;


    @ApiOperation(value = "查询本局可以打几")
    @GetMapping("/queryValues")
    public Result<List<Card>> getUser(){
        return cardService.queryValues();
    }







}
